<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分享一个产品，代购整座城市</title>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="../css/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../css/commons.css">
    <style>
        body,html{
            width: 100%;
            height: 100%;
            background: #fff;
        }
        body, .mui-content{
            background: #fff;
        }
        .big_box{
            position: relative;
            width: 100%;
        }
        img{
            width: 100%;
            display: block;
            margin: 0;
        }
        .download,.phone{
            position: absolute;
            width: 70%;
            height: 47px;
            left: 15%;
            bottom: 3.6%;
        }
        .phone{
            bottom: 1.4%;
        }
    </style>
</head>
<body>
<div id="refreshContainer" class="mui-content mui-scroll-wrapper">
<div class="big_box" onload="scroll(0,0) ">
    <img src="../img/devide.jpg" alt="分享红包">
    <div class="download" id="download"></div>
    <a class="phone" href="tel:4006016606"></a>
</div>
</div>
<script src="../js/mui.min.js"></script>
<script src="../js/jquery-1.10.1.min.js"></script>
<script>  document.write("<s"+"cript type='text/javascript' src='../js/common.js?"+Math.random()+"'></scr"+"ipt>"); </script>
<script>
    mui('.mui-scroll-wrapper').scroll({
        deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
    });
    $(function () {
//        $('body').scrollTop(600);
        mui('.mui-scroll-wrapper').scroll().scrollTo(0,0,100);//100毫秒滚动到顶
    })

    //点击下载
    $('.download').click(function(){
        goDownload();
    })

    // 去下载
    function goDownload() {
        var u = navigator.userAgent, app = navigator.appVersion;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
        // 是安卓浏览器
        if (isAndroid) {
            // 是微信内部webView
            if (is_weixn()) {
                window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.example.ddm'; // 跳安卓端下载地址
            }else{
                window.location.href = 'http://www.ddmzl.com/zl.apk'; // 跳安卓端下载地址
            }
        }
        // 是iOS浏览器
        if (isIOS) {
            window.location.href = 'https://itunes.apple.com/cn/app/id1263406469?mt=8'; // 跳AppStore下载地址
        }



    }

    // 是微信浏览器
    function is_weixn(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            return true;
        } else {
            return false;
        }
    }

</script>
</body>
</html>